// @Date         2021-12-06
// @Author       Aaron Zhang
// @Description
// @FileName      provider.go

package redis

import (
	"zin/framework"
	"zin/framework/contract"
)

type ProviderRedis struct {
}

func (p *ProviderRedis) Register(c framework.Container) framework.NewInstance {
	return NewProviderServiceRedis
}

func (p *ProviderRedis) Boot(c framework.Container) error {
	return nil
}

func (p *ProviderRedis) IsDefer() bool {
	return false
}

func (p *ProviderRedis) Params(param map[string]interface{}) map[string]interface{} {
	return param
}

func (p *ProviderRedis) Name() string {
	return contract.ProviderKeyRedis
}
